package com.suixun;

import java.io.Serializable;

/**
 * ResourceBean.java
 * <p>
 * 描述：rest资源文件基础类
 *
 * @author <a href="mailto:huangy@17find.com">hellmash</a>
 * @version create on 2015-07-17 18:34
 *          <p>
 *          CopyRight(c)2015 杭州随寻科技有限公司 17find.com 版权所有
 */
public abstract class ResourceBean implements Serializable, Comparable<ResourceBean>{

    @Override
    public int compareTo(ResourceBean bean){
        return this.toKey().compareTo(bean.toKey());
    }

    public abstract String toKey();

    public String toLog(){
        return null;
    }

}
